package com.liumuxian.user.client;


import com.liumuxian.user.client.impl.VideoClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import java.util.HashSet;

@Component
@FeignClient(value = "examination-video" , fallback = VideoClientImpl.class)
public interface VideoClient {
    @PostMapping(value = "/uploadfile",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Result uploads(@PathVariable MultipartFile[] file);


}
